package com.qijian.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 发货计划对象 im_delivery_plan
 *
 * @author qijian
 * @date 2024-01-11
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("im_delivery_plan")
public class DeliveryPlan extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @Excel(name = "单据编号")
    @ApiModelProperty(value = "单据编号")
    private String code;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "计划发货时间")
    private Date planReleaseDate;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "工艺员id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工艺员id")
    private Long gyUserId;

    @Excel(name = "工艺员")
    @ApiModelProperty(value = "工艺员")
    private String gyUserName;

    @Excel(name = "商务确认人id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "商务确认人id")
    private Long businessUserId;

    @Excel(name = "商务确认人")
    @ApiModelProperty(value = "商务确认人")
    private String businessUserName;

    @Excel(name = "是否确认  0未确认,1已确认")
    @ApiModelProperty(value = "是否确认  0未确认,1已确认")
    private Boolean businessConfirmFlag;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "商务确认时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "商务确认时间")
    private Date businessConfirmDate;

    @Excel(name = "当前节点")
    @ApiModelProperty(value = "当前节点")
    private String currentNode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "pod日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "pod日期")
    private Date podDate;

}
